home *** CD-ROM | disk | FTP | other *** search
/ Pesquisa Dirigida / Pesquisa Dirigida.iso / JOGOS / lightning_break.swf / scripts / DefineButton2_49 / BUTTONCONDACTION on(release, releaseOutside).as < prev   
Text File  |  2005-01-07  |  479b  |  21 lines

  1. on(release, releaseOutside){
  2.    if(_root.version ne "nkcheat")
  3.    {
  4.       return undefined;
  5.    }
  6.    if(this.mode == "aim")
  7.    {
  8.       aim.stopDrag();
  9.       this.engine.setSpeed(aim._x / 5,aim._y / 5);
  10.       aim._visible = false;
  11.    }
  12.    else
  13.    {
  14.       this.engine.setSpeed(0,0);
  15.       var round = 0.000001;
  16.       this.engine.setPos(int(_root._xmouse / round) * round,int(_root._ymouse / round) * round);
  17.       this.stopDrag();
  18.       _root.startAim();
  19.    }
  20. }
  21.